package com.rongke.service.impl;

import java.util.List;

import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.rongke.mapper.ChemotherapyMedicineMapper;
import com.rongke.model.ChemotherapyMedicine;
import com.rongke.service.ChemotherapyMedicineService;

import org.springframework.stereotype.Service;

/**
 * @ChemotherapyMedicineServiceImpl
 * @化疗用药ServiceImpl
 * @version : Ver 1.0
 */
@Service
public class ChemotherapyMedicineServiceImpl
                                            extends
                                            ServiceImpl<ChemotherapyMedicineMapper, ChemotherapyMedicine>
                                                                                                         implements
                                                                                                         ChemotherapyMedicineService {

    @Override
    public List<ChemotherapyMedicine> selectByChemoId(long id) {
        EntityWrapper<ChemotherapyMedicine> ew = new EntityWrapper<ChemotherapyMedicine>();
        ew.eq("chemotherapy_id", id);
        return baseMapper.selectList(ew);
    }
}
